var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({ 
	name:String,
	price:Number,
	seller:String,
	typeId:String,
	stock:Number,
	description:String,
	img:{},
	date: { type: Date, default: Date.now }
 });
schema.plugin(mongoosePaginate);
var Production = mongoose.model('Production',schema,'production'); // Model.paginate()
module.exports = Production;